<template>
	<!-- 
	v-model给普通DOM元素绑定，
		还是绑定了value属性和input事件
	v-model给组件绑定
		绑定的属性叫 modelValue	
		绑定自定义事件叫 update:modelValue	

		特点：
			1. 可以取名称 v-model:count
			2. 可以绑定多个v-model
 -->
	<HelloWorld v-model:count="count" v-model:aaa="count"/>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
	name: 'App',
	data() {
		return {
			count: 0,
		}
	},
	components: {
		HelloWorld,
	},
}

// This starter template is using Vue 3 experimental <script setup> SFCs
// Check out https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md
</script>

<style>
#app {
	font-family: Avenir, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
	color: #2c3e50;
	margin-top: 60px;
}
</style>
